package mipo.top.system.mapper;

import mipo.top.base.mapper.BaseMapper;
import mipo.top.system.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    void removeRolePermissionByRoldId(Long id);

    void removeRoleMenuByRoldId(Long id);

    void saveRolePermissons(@Param("roleId")Long roleId, @Param("permissions") List<Long> permission);
    //添加中间表信息：t_role_menu
    void saveRoleMenus(@Param("roleId")Long roleId, @Param("menus")List<Long> menu);
}
